<template>
  <div id="currentpointslist"> 


          <el-table :data="data" style="width: 100%" :height="dtheight" :header-cell-style="{background:'#4F81BC',color:'white'}"
           :row-class-name="tableRowClassName"  :border="true">

               
                <el-table-column label="金额"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.change }}</span>
                    </template>
                </el-table-column>
                 <el-table-column label="方式"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span v-if="scope.row.flag == 'IN'">收入</span>
                        <span v-if="scope.row.flag == 'OUT'">支出</span>
                    </template>
                </el-table-column>

                 <el-table-column label="状态"  align='center' >                   
                    <template slot-scope="scope">                   
                         <span v-if="scope.row.lx == 1">
                                <span v-if="scope.row.type == 'SERVICE_KMB_YUYUE'">手续费（预约）</span>
                                <span v-if="scope.row.type == 'SERVICE_KMB_DIRECT'">手续费（直抢）</span>
                                <span v-if="scope.row.type == 'BUY_MEMBER_CARD'">购买会员卡</span>
                                <span v-if="scope.row.type == 'TRANSFER_KMB'">兑换{{ variable_name1 }}</span>
                                <span v-if="scope.row.type == 'RETURN_SERVICE_KMB_YUYUE'">返还手续费（预约）</span>
                                <span v-if="scope.row.type == 'RETURN_SERVICE_KMB_DIRECT'">返还手续费（直抢）</span>
                                <span v-if="scope.row.type == 'MANUAL_CHANGE_ADMIN'">后台调控</span>
                                <span v-if="scope.row.type == 'INVITE_MEMBER'">邀请会员</span>
                                <span v-if="scope.row.type == 'APPOINTMENT'">预约消费</span>
                                <span v-if="scope.row.type == 'RETURN_APPOINTMENT'">返回预约消费</span>
                         </span>

                         <span v-if="scope.row.lx == 2">
                                <span v-if="scope.row.type == 'REWARD_DIRECT'">下级买{{ variable_name4 }} 直接奖励</span>
                                <span v-if="scope.row.type == 'REWARD_INDIRECT'">下级买{{ variable_name4 }} 间接奖励</span>
                                <span v-if="scope.row.type == 'INVITE_MEMBER'">邀请会员</span>
                                <span v-if="scope.row.type == 'EMIT_REWARD'">出兑果米奖励</span>
                                <span v-if="scope.row.type == 'EXCHANGE_GOODS'">兑换{{ variable_name4 }}</span>
                                <span v-if="scope.row.type == 'EXCHANGE_GDB_TICKET'">兑换{{ variable_name2 }}券</span>
                                 <span v-if="scope.row.type == 'SIGN_IN_REWARD'">签到奖励</span>
                         </span>

                    </template>
                </el-table-column>

                <el-table-column label="时间"  align='center' >                   
                    <template slot-scope="scope">                   
                        <span >{{ scope.row.time }}</span>
                    </template>
                </el-table-column>
                   

  
            </el-table>  


   </div>
</template>

<script>

export default {
   name: 'currentpointslist',
   props:{
      data:{  
        //type:Array,
       default:()=>[]
     },
  },
  data () {
    return {
        dtheight:'500',  //窗口高度
    }
  },
   components:{

  },
  created(){
     this.dtheight = window.innerHeight - 255
      
  },
  mounted (){
    
  },
  methods: {
 



  }
}
</script>


<style scoped>

</style>